.class Lcom/instagram/android/feed/e/k;
.super Landroid/content/BroadcastReceiver;
.source "MediaLinkBroadcastHandler.java"


# instance fields
.field final synthetic a:Lcom/instagram/android/feed/e/j;


# direct methods
.method constructor <init>(Lcom/instagram/android/feed/e/j;)V
    .locals 0
    .parameter

    .prologue
    .line 44
    iput-object p1, p0, Lcom/instagram/android/feed/e/k;->a:Lcom/instagram/android/feed/e/j;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 4
    .parameter "context"
    .parameter "intent"

    .prologue
    .line 47
    const-string v0, "Media.COMMENT_MENTION_CLICKED"

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 48
    const-string v0, "tag"

    iget-object v1, p0, Lcom/instagram/android/feed/e/k;->a:Lcom/instagram/android/feed/e/j;

    invoke-static {v1}, Lcom/instagram/android/feed/e/j;->a(Lcom/instagram/android/feed/e/j;)Lcom/instagram/b/d;

    move-result-object v1

    invoke-static {p2, v0, v1}, Lcom/instagram/android/feed/e/j;->a(Landroid/content/Intent;Ljava/lang/String;Lcom/instagram/b/d;)V

    .line 50
    iget-object v0, p0, Lcom/instagram/android/feed/e/k;->a:Lcom/instagram/android/feed/e/j;

    invoke-static {v0}, Lcom/instagram/android/feed/e/j;->b(Lcom/instagram/android/feed/e/j;)Landroid/support/v4/app/Fragment;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/Fragment;->m()Landroid/support/v4/app/r;

    move-result-object v0

    const-string v1, "Media.EXTRA_USERNAME"

    invoke-virtual {p2, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/instagram/android/util/v;->b(Landroid/support/v4/app/r;Ljava/lang/String;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    const-string v1, "user_mention"

    invoke-virtual {v0, v1}, Lcom/instagram/e/b/a/a;->e(Ljava/lang/String;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/e/b/a/a;->e()V

    .line 105
    :cond_0
    :goto_0
    return-void

    .line 55
    :cond_1
    const-string v0, "Media.COMMENT_HASHTAG_CLICKED"

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 56
    const-string v0, "hashtag"

    iget-object v1, p0, Lcom/instagram/android/feed/e/k;->a:Lcom/instagram/android/feed/e/j;

    invoke-static {v1}, Lcom/instagram/android/feed/e/j;->a(Lcom/instagram/android/feed/e/j;)Lcom/instagram/b/d;

    move-result-object v1

    invoke-static {p2, v0, v1}, Lcom/instagram/android/feed/e/j;->a(Landroid/content/Intent;Ljava/lang/String;Lcom/instagram/b/d;)V

    .line 58
    iget-object v0, p0, Lcom/instagram/android/feed/e/k;->a:Lcom/instagram/android/feed/e/j;

    invoke-static {v0}, Lcom/instagram/android/feed/e/j;->b(Lcom/instagram/android/feed/e/j;)Landroid/support/v4/app/Fragment;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "Media.EXTRA_HASHTAG_NAME"

    invoke-virtual {p2, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/android/feed/e/k;->a:Lcom/instagram/android/feed/e/j;

    invoke-static {v2}, Lcom/instagram/android/feed/e/j;->b(Lcom/instagram/android/feed/e/j;)Landroid/support/v4/app/Fragment;

    move-result-object v2

    invoke-virtual {v2}, Landroid/support/v4/app/Fragment;->m()Landroid/support/v4/app/r;

    move-result-object v2

    const-string v3, "media_hashtag"

    invoke-static {v0, v1, v2, v3}, Lcom/instagram/android/fragment/dh;->a(Landroid/content/Context;Ljava/lang/String;Landroid/support/v4/app/r;Ljava/lang/String;)V

    goto :goto_0

    .line 65
    :cond_2
    const-string v0, "Media.NUMBER_LIKES_CLICKED"

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 66
    const-string v0, "number_of_likes"

    iget-object v1, p0, Lcom/instagram/android/feed/e/k;->a:Lcom/instagram/android/feed/e/j;

    invoke-static {v1}, Lcom/instagram/android/feed/e/j;->a(Lcom/instagram/android/feed/e/j;)Lcom/instagram/b/d;

    move-result-object v1

    invoke-static {p2, v0, v1}, Lcom/instagram/android/feed/e/j;->a(Landroid/content/Intent;Ljava/lang/String;Lcom/instagram/b/d;)V

    .line 68
    invoke-static {}, Lcom/instagram/j/u;->a()Lcom/instagram/j/u;

    move-result-object v0

    const-string v1, "Media.EXTRA_MEDIA_ID"

    invoke-virtual {p2, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/j/u;->b(Ljava/lang/String;)Lcom/instagram/j/l;

    move-result-object v0

    .line 71
    new-instance v1, Lcom/instagram/android/fragment/hz;

    iget-object v2, p0, Lcom/instagram/android/feed/e/k;->a:Lcom/instagram/android/feed/e/j;

    invoke-static {v2}, Lcom/instagram/android/feed/e/j;->b(Lcom/instagram/android/feed/e/j;)Landroid/support/v4/app/Fragment;

    move-result-object v2

    invoke-virtual {v2}, Landroid/support/v4/app/Fragment;->m()Landroid/support/v4/app/r;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/instagram/android/fragment/hz;-><init>(Landroid/support/v4/app/r;)V

    invoke-virtual {v1, p1, v0}, Lcom/instagram/android/fragment/hz;->a(Landroid/content/Context;Lcom/instagram/j/l;)Lcom/instagram/android/fragment/hz;

    move-result-object v0

    const-string v1, "media_likes"

    invoke-virtual {v0, v1}, Lcom/instagram/android/fragment/hz;->e(Ljava/lang/String;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/e/b/a/a;->e()V

    goto :goto_0

    .line 76
    :cond_3
    const-string v0, "Media.USER_CLICKED"

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 77
    iget-object v0, p0, Lcom/instagram/android/feed/e/k;->a:Lcom/instagram/android/feed/e/j;

    invoke-static {v0}, Lcom/instagram/android/feed/e/j;->a(Lcom/instagram/android/feed/e/j;)Lcom/instagram/b/d;

    move-result-object v0

    invoke-static {p2, v0}, Lcom/instagram/android/feed/e/j;->a(Landroid/content/Intent;Lcom/instagram/b/d;)V

    .line 79
    iget-object v0, p0, Lcom/instagram/android/feed/e/k;->a:Lcom/instagram/android/feed/e/j;

    invoke-static {v0}, Lcom/instagram/android/feed/e/j;->b(Lcom/instagram/android/feed/e/j;)Landroid/support/v4/app/Fragment;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/Fragment;->m()Landroid/support/v4/app/r;

    move-result-object v0

    const-string v1, "Media.EXTRA_USER_ID"

    invoke-virtual {p2, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/instagram/android/util/v;->a(Landroid/support/v4/app/r;Ljava/lang/String;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    const-string v1, "Media.EXTRA_CLICK_POINT"

    invoke-virtual {p2, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/e/b/a/a;->e(Ljava/lang/String;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/e/b/a/a;->e()V

    goto/16 :goto_0

    .line 84
    :cond_4
    const-string v0, "Media.NUMBER_COMMENTS_CLICKED"

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 85
    const-string v0, "number_of_comments"

    iget-object v1, p0, Lcom/instagram/android/feed/e/k;->a:Lcom/instagram/android/feed/e/j;

    invoke-static {v1}, Lcom/instagram/android/feed/e/j;->a(Lcom/instagram/android/feed/e/j;)Lcom/instagram/b/d;

    move-result-object v1

    invoke-static {p2, v0, v1}, Lcom/instagram/android/feed/e/j;->a(Landroid/content/Intent;Ljava/lang/String;Lcom/instagram/b/d;)V

    .line 87
    const-string v0, "Media.EXTRA_MEDIA_ID"

    invoke-virtual {p2, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 89
    iget-object v1, p0, Lcom/instagram/android/feed/e/k;->a:Lcom/instagram/android/feed/e/j;

    invoke-static {v1}, Lcom/instagram/android/feed/e/j;->b(Lcom/instagram/android/feed/e/j;)Landroid/support/v4/app/Fragment;

    move-result-object v1

    invoke-virtual {v1}, Landroid/support/v4/app/Fragment;->m()Landroid/support/v4/app/r;

    move-result-object v1

    invoke-static {}, Lcom/instagram/j/u;->a()Lcom/instagram/j/u;

    move-result-object v2

    invoke-virtual {v2, v0}, Lcom/instagram/j/u;->b(Ljava/lang/String;)Lcom/instagram/j/l;

    move-result-object v0

    const/4 v2, 0x0

    iget-object v3, p0, Lcom/instagram/android/feed/e/k;->a:Lcom/instagram/android/feed/e/j;

    invoke-static {v3}, Lcom/instagram/android/feed/e/j;->a(Lcom/instagram/android/feed/e/j;)Lcom/instagram/b/d;

    move-result-object v3

    invoke-interface {v3}, Lcom/instagram/b/d;->c_()Z

    move-result v3

    invoke-static {v1, v0, v2, v3}, Lcom/instagram/android/util/v;->a(Landroid/support/v4/app/r;Lcom/instagram/j/l;ZZ)Lcom/instagram/e/b/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/e/b/a/a;->e()V

    goto/16 :goto_0

    .line 93
    :cond_5
    const-string v0, "PeopleTag.BROADCAST_TAG_CLICKED"

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 94
    const-string v0, "PeopleTag.INTENT_EXTRA_USER_ID"

    invoke-virtual {p2, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 95
    const-string v1, "PeopleTag.INTENT_EXTRA_MEDIA_ID"

    invoke-virtual {p2, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 96
    invoke-static {}, Lcom/instagram/j/u;->a()Lcom/instagram/j/u;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/instagram/j/u;->b(Ljava/lang/String;)Lcom/instagram/j/l;

    move-result-object v1

    .line 98
    invoke-static {}, Lcom/instagram/service/a;->a()Lcom/instagram/service/a;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/service/a;->b()Lcom/instagram/android/model/b/e;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/android/model/b/e;->k()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_6

    .line 99
    iget-object v0, p0, Lcom/instagram/android/feed/e/k;->a:Lcom/instagram/android/feed/e/j;

    invoke-static {v0}, Lcom/instagram/android/feed/e/j;->b(Lcom/instagram/android/feed/e/j;)Landroid/support/v4/app/Fragment;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object v0

    iget-object v2, p0, Lcom/instagram/android/feed/e/k;->a:Lcom/instagram/android/feed/e/j;

    invoke-static {v2}, Lcom/instagram/android/feed/e/j;->b(Lcom/instagram/android/feed/e/j;)Landroid/support/v4/app/Fragment;

    move-result-object v2

    invoke-virtual {v2}, Landroid/support/v4/app/Fragment;->u()Landroid/support/v4/app/aj;

    move-result-object v2

    invoke-static {v0, v2, v1}, Lcom/instagram/android/people/c/b;->a(Landroid/content/Context;Landroid/support/v4/app/aj;Lcom/instagram/j/l;)V

    goto/16 :goto_0

    .line 102
    :cond_6
    iget-object v1, p0, Lcom/instagram/android/feed/e/k;->a:Lcom/instagram/android/feed/e/j;

    invoke-static {v1}, Lcom/instagram/android/feed/e/j;->b(Lcom/instagram/android/feed/e/j;)Landroid/support/v4/app/Fragment;

    move-result-object v1

    invoke-virtual {v1}, Landroid/support/v4/app/Fragment;->m()Landroid/support/v4/app/r;

    move-result-object v1

    invoke-static {v1, v0}, Lcom/instagram/android/util/v;->a(Landroid/support/v4/app/r;Ljava/lang/String;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/e/b/a/a;->e()V

    goto/16 :goto_0
.end method
